package com.erju.pojo;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * @Description: 用户实体类
 * @author: 86132
 * @date: 2022.03.03
 */
@Data
public class User implements Serializable {
    private static final long serialVersionUID = 1L;

    private Integer id;
    /**
     * 对应前端字段名称 json里面传user的时候不是用username 用的是account
     */
    @JsonProperty("account")
    @ExcelProperty("用户名")
    private String username;
    @ExcelProperty("用户昵称")
    private String nickname;
    private String password;
    private Integer gender;
    private String head_picture;
    @ExcelProperty("用户类型")
    private Integer user_type;
    @ExcelProperty("是否使用")
    private Integer use_flag;
    @ExcelProperty("手机号")
    private String phone_number;
    @ExcelProperty("QQ号")
    private String qq_number;
    @ExcelProperty("微信号")
    private String wechat_number;
    @ExcelProperty("邮箱")
    private String email;
    @ExcelIgnore
    private String permissions;
}
